package com.ruoyi.system.domain.DO;


import java.util.List;
import java.util.Map;

public class RetrievalSearchResult {

    // list列表
    private List<Map<String, Object>> records;
    // 总条数
    private long total;
    //总页数
    private long pages;
    //每页条数
    private long size;
    //当前页
    private long current;

    private Object time;

    public List<Map<String, Object>> getRecords() {
        return records;
    }

    public void setRecords(List<Map<String, Object>> records) {
        this.records = records;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public Object getTime() {
        return time;
    }

    public void setTime(Object time) {
        this.time = time;
    }

    //===============链式方法==============
    public static RetrievalSearchResult success(Object ...item){
        RetrievalSearchResult Result = new RetrievalSearchResult();
        return Result;
    }
    public RetrievalSearchResult() {}
    public RetrievalSearchResult records(List<Map<String, Object>> records) {
        this.records = records;
        return this;
    }
    public RetrievalSearchResult total(long total) {
        this.total = total;
        return this;
    }
    public RetrievalSearchResult pages(long pages) {
        this.pages = pages;
        return this;
    }
    public RetrievalSearchResult size(long size) {
        this.size = size;
        return this;
    }
    public RetrievalSearchResult current(long current) {
        this.current = current;
        return this;
    }

    public RetrievalSearchResult time(Object time) {
        this.time = time;
        return this;
    }
}
